const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    itemnum: 253423231212,
    symptoms: "",
    name: "皮皮仓",
    age: 24,
    sex: "男",
    date: "2020-09-13 12:45",
    idcard: 422807188713872334,
    tel: 1213132424242,
    pathology: "头晕、咳嗽、浑身无力、要吃六味地黄丸才行！",
    result: "季节性感冒",
    price: 1000000,
    showDialog: false,
    groups: [
      { text: '示例菜单', value: 1 },
      { text: '示例菜单', value: 2 },
      { text: '负向菜单', type: 'warn', value: 3 }
    ]

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this;
    this.setData({
      itemnum: app.globalData.itemno,
      symptoms: app.globalData.symptoms
    });
  },
 
  openDialog: function () {
    this.setData({
      showDialog: true
    })
    console.log("111")
  },
})